home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh
- #This should become a C program to handle the NeXT character set.
- if ! -f "$1" then
- echo Uncompress: I can only uncompress from files with an ASCII name! > /dev/console
- exit(-1)
- else if "$1" =~ *.tar.Z then
- if ( "$1" == "`echo $1 | sed -e 'ss\(/.*\)/\([^/]*\)s\1/\2s'`" ) then
- cd "`echo $1 | sed -e 'ss\(/.*\)/\([^/]*\)s\1s'`"
- #Here should be a check to see if the archive is relative, builds its own
- #directory and does that with the same name as file.tar.Z.
- zcat "$1" | tar xf -
- else
- echo Uncompress: Can't handle the extraneous characters in a shell script! > /dev/console
- exit(-1)
- #Maybe this is just a misunderstanding of mine (please tell me if the test could
- #be omitted, I'm RfSchtkt@banruc60.bitnet, at least on 1992-07-03 I was).
- #But I get the creeps of the badly explained notion of ``character''.
- #I wish one would say things like ``visible ASCII character''
- #and thereby mean only 0x21 through 0x7e.
- #There should also be a better explanation of how many bits are looked at,
- #and if the highest is preserved or not.
- endif
- else if "$1" =~ *.Z then
- uncompress "$1"
- else
- echo Uncompress: You gave me a file with the wrong extension! > /dev/console
- exit(-1)
- endif
-